import java.util.ServiceConfigurationError;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: YKH
 * Date: 2022-07-07
 * Time: 21:23
 */
public class Main {
    public static void main(String[] args) {
        int []arr = { 6,4,8,10,0,1,5,3,7 };
        SearchTree searchTree = new SearchTree();
        for (int i = 0; i < arr.length; i++) {
            searchTree.insert(arr[i]);
        }

        searchTree.remove( 1);
        searchTree.inorder(searchTree.root);
//        SearchTree.TreeNode p = searchTree.search(11);
//        if( p!=null) {
//            System.out.println(p.val);
//        } else {
//            System.out.println("查找的数不存在");
//        }

        //searchTree.inorder( searchTree.root);
    }

}
